/**
 * Created with IntelliJ IDEA.
 *
 * @author: cxs
 * @date: 2023/6/26
 * @time: 20:53
 * @className：UserMapper
 * @description：
 */
package com.bailan.sys.mapper;

import com.bailan.sys.domain.User;
import com.bailan.sys.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User isUserExist(UserVo userVo);

    /**
     * 查询所有用户
     * @return
     */
    List<User> queryAllUser();

    /**
     * 添加用户
     * @param userVo
     */
    void insertSelective(UserVo userVo);

    void updateByPrimaryKeySelective(User user);

    void deleteByPrimaryKey(Integer userid);
}
